Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

compile domain regex only once#126

Closed
elijah-wright wants to merge 1 commit into
GSA-TTS:mainfrom
elijah-wright:domain-regex
Closed

compile domain regex only once#126
elijah-wright wants to merge 1 commit into
GSA-TTS:mainfrom
elijah-wright:domain-regex

Conversation

@elijah-wright

Copy link
Copy Markdown
Contributor

🛠 Summary of changes

this PR moves the regex in processImage outside of the function, which should reduce the amount of compilations per each service. testing from someone with cloud.gov access is definitely needed, but I benchmarked the external invocation at 832.2 ns/op vs. 12893 ns/op for the existing code on a Ryzen 5 2600

@elijah-wright elijah-wright force-pushed the domain-regex branch 3 times, most recently from 01bc154 to 97ddc0b Compare June 10, 2025 21:50
@rahearn rahearn requested a review from zjrgov July 14, 2025 14:56

@zjrgov zjrgov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for the contribution! Would you like to rebase your branch onto updated main?

@elijah-wright

Copy link
Copy Markdown
Contributor Author

ok done 👍

@rahearn

rahearn commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

@elijah-wright thanks for your contribution. I've cherry-picked your commit and opened #139 so that our actions can run and we can merge it in.

@rahearn rahearn closed this Jul 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants